<?php
namespace app\common;
/**
 * error code 说明.
 * <ul>

 *    <li>-41001: encodingAesKey 非法</li>
 *    <li>-41003: aes 解密失败</li>
 *    <li>-41004: 解密后得到的buffer非法</li>
 *    <li>-41005: base64加密失败</li>
 *    <li>-41016: base64解密失败</li>
 * </ul>
 */
class ErrorCode
{
	//算法解密的提示码
	public static $OK = 0;
	public static $nickName = -1;
	public static $avatarUrl = -2;
	public static $dataNull =-3;
	public static $IllegalAesKey = -41001;
	public static $IllegalIv = -41002;
	public static $IllegalBuffer = -41003;
	public static $DecodeBase64Error = -41004;

	public static $SUCCESS = '501';
	public static $DATABASE_NOT_FOUND = '502';
	public static $DATABASE_ERROR = '503';
	public static $RECEIVE_ERROR = '504';
	public static $DATA_ERROR = '505';

	//返回数据的提示吗
	public static $CodeInfo = array(
		'501' => '执行成功', 
		'502' => '查询不到数据',
		'503' => '数据库录入失败',
		'504' => '前端接收的数据为空',
		'505' => '数据出错',
		);
	public static $Code = array(
		'1' => '501',
		'0' => '502',
		'-1' => '503',
		'-2' => '504',
		'-3' => '505',
		);

}

?>